<?php

include "autoload.php";

use DesignPatterns\Behavioral\Strategy\Context;
use DesignPatterns\Behavioral\Strategy\OperationAdd;
use DesignPatterns\Behavioral\Strategy\OperationSubtract;
use DesignPatterns\Behavioral\Strategy\OperationMultiply;

$context = new Context(new OperationAdd());
printf("10+5=%d\n", $context->executeStrategy(10, 5));

$context = new Context(new OperationSubtract());
printf("10+5=%d\n", $context->executeStrategy(10, 5));

$context = new Context(new OperationMultiply());
printf("10+5=%d\n", $context->executeStrategy(10, 5));